import request from "@/utils/request";
// 课程数据变更日志
export function courseChangeLog(courseId) {
  return request({
    url: `/school/teacher/teachingPage/courseChangeLog/${courseId}`,
    method: "get",
  });
}
// 课程学习数据
export function courseStudyDate(courseId) {
  return request({
    url: `/school/teacher/teachingPage/courseStudyDate/${courseId}`,
    method: "get",
  });
}
// 学生评价详情
export function evaluateInfo(courseStuId) {
  return request({
    url: `/school/teacher/teachingPage/evaluateInfo/${courseStuId}`,
    method: "get",
  });
}

// 获取学习进度和成果状态
export function getLearningProgress(courseStuId) {
  return request({
    url: `/school/student/courseStudyManager/getLearningProgress/${courseStuId}`,
    method: "get",
  });
}
// 查询课程所有学习成果-学生个人中心
export function learningResultMine(query) {
  return request({
    url: `/school/student/mineData/learningResult`,
    method: "get",
    params: query,
  });
}
// 查询课程所有学习成果
export function learningResult(indexId, query) {
  return request({
    url: `/school/teacher/teachingPage/learningResult/${indexId}`,
    method: "get",
    params: query,
  });
}
// 查询课程优秀学习成果
export function excellentLearningResult(indexId) {
  return request({
    url: `/school/teacher/teachingPage/excellentLearningResult/${indexId}`,
    method: "get",
  });
}
// 新增课程优秀学习成果
export function addExcellentLearningResult(data) {
  return request({
    url: "/school/teacher/teachingPage/addExcellentLearningResult",
    method: "post",
    data: data,
  });
}
// 删除课程优秀学习成果
export function deleteExcellentLearningResult(ids) {
  return request({
    url: `/school/teacher/teachingPage/deleteExcellentLearningResult/${ids}`,
    method: "post",
  });
}
// 课程优秀学习成果排序
export function learningResultSort(ids) {
  return request({
    url: `/school/teacher/teachingPage/learningResultSort/${ids}`,
    method: "put",
  });
}
